﻿using System;
using System.Windows.Input;

namespace YourLastOptionsDialog.Core.Attributes
{
    /// <summary>
    /// An option attribute that represents a password option.
    /// Derives from and inherits all options of the string attribute.
    /// </summary>
    [AttributeUsage(AttributeTargets.Property)]
    public sealed class OptionPasswordAttribute : OptionStringAttribute
    {
        /// <summary>
        /// Gets or sets a value indicating whether a second editor for confirmation should be shown,
        /// typically when the user is supposed to change a password.
        /// </summary>
        /// <value>
        ///   <c>true</c> if a confirmation editor should be shown; otherwise, <c>false</c>.
        /// </value>
        public bool ShowConfirmation
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the confirmation password description.
        /// </summary>
        public string ConfirmationDescription
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the passwords don't match error message.
        /// </summary>
        public string PasswordsDoNotMatchErrorMessage
        {
            get;
            set;
        }
    }
}